package rama.prueba;

import rama.prueba.R;
import android.os.Bundle;
import android.widget.Button;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.DragShadowBuilder;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.app.Activity;
import android.content.ClipData;

public class Pantalla2Activity extends Activity 
implements OnTouchListener{

		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.pantalla2);		
			findViewById(R.id.imageView4).setOnTouchListener((OnTouchListener) this);
			findViewById(R.id.imageView5).setOnTouchListener((OnTouchListener) this);
			View contSup = findViewById(R.id.contSup);
			//contSup.setOnDragListener(new MiDragListener());
		     View contInf = findViewById(R.id.contInf);
			//contInf.setOnDragListener(new MiDragListener()); 
			
		/*	final Button button1 = (Button) findViewById(R.id.button1);
			button1.setOnClickListener(new OnClickListener(){
				public void onClick (View v){				
				}
			});*/
		}

		@Override
		public boolean onTouch(View view, MotionEvent event) {
			if (event.getAction()==MotionEvent.ACTION_DOWN){
				//ClipData data = ClipData.newPlainText("", "");
				//DragShadowBuilder builder = new View.DragShadowBuilder(view);
				//view.startDrag(data, builder, view, 0);
				view.setVisibility(View.INVISIBLE);
				return true;
			}
			else{ return false;}
		}
		
	}
